﻿ 
namespace Core.Items.Modules
{
    /*

		MetaGroup                      = Armor
		Group                          = ArmorHardeners
		ModuleClass                    = Universal
		Module                         = standard universal armor
		CpuUsage                       = 35.00 TF
		ReactorUsage                   = 10.00 RP
		PassiveChemicalResistance      = 30 points (23.08%)
		Type                           = Passive
		Slot                           = Legs
		TechnologicalLevel             = T1
		Mass                           = 250.00 kg
		PackedVolume                   = 0.75 U
		Volume                         = 1.50 U
		PassiveKineticResistance       = 30 points (23.08%)
		PassiveSeismicResistance       = 30 points (23.08%)
		PassiveThermalResistance       = 30 points (23.08%)
    */

    using System;
    using Base;
    using Contracts.Enums;
    using Contracts.Interfaces;
    using Extensions;
    using Features;
    
    /// <summary>
    /// Standard universal armor module class
    /// </summary>
    /// <remarks>File generated on 31/10/2011 16:00:53</remarks>
    public sealed class StandardUniversalArmor : ModuleBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="StandardUniversalArmor"/> class.
        /// </summary>
        public StandardUniversalArmor()
            : base(
            "Standard universal armor",
            "",
            ModuleMetaGroupsEnum.Armor,
            ModuleGroupsEnum.ArmorHardeners,
            TechnologyLevelsEnum.Level1,
            SizesEnum.Small,
            new LazyFeature[] { 
				new LazyFeature(typeof(ArmorModuleCpuUsage<double>),35.00),
				new LazyFeature(typeof(ArmorModuleReactorUsage<double>),10.00),
				new LazyFeature(typeof(ModuleMass<double>),250.00), },
            null,
            new IModifier[] { 
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.RobotMass, 250.00 ){ IsVisible = false },
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.ChemicalResistance, 30){  Unit = UnitsEnum.Points, DisplayName = "Chemical resistance"  },
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.KineticResistance, 30){  Unit = UnitsEnum.Points, DisplayName = "Kinetic resistance"  },
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.SeismicResistance, 30){  Unit = UnitsEnum.Points, DisplayName = "Seismic resistance"  },
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.ThermalResistance, 30){  Unit = UnitsEnum.Points, DisplayName = "Thermal resistance"  }, } )
        {
        }

        /// <summary>
        /// Obtains the activation type
        /// </summary>
        public override ModuleActivationTypesEnum ActivationType
        {
            get { return ModuleActivationTypesEnum.Passive; }
        }
        /// <summary>
        /// Obtains the module slot group 
        /// </summary>
        public override SlotGroupsEnum SlotGroup
        {
            get { return SlotGroupsEnum.Legs; }
        }
        /// <summary>
        /// Obtains the module slot type 
        /// </summary>
        public override SlotTypesEnum SlotType
        {
            get { return SlotTypesEnum.Modules; }
        }
    }
}